<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Event
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Manage.php 9319 2011-09-23 20:48:26Z john $
 * @author     John
 */

/**
 * @category   Application_Extensions
 * @package    Event
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Event_Form_Filter_Manage extends Engine_Form {
	public function init() {
		$this->clearDecorators ()->addDecorators ( array ('FormElements', array ('HtmlTag', array ('tag' => 'dl' ) ), 'Form' ) )->setMethod ( 'get' )->setAttrib ( 'class', 'filters' );
		
		$this->addElement ( 'Text', 'text', array ('label' => 'Search:', 'decorators' => array ('ViewHelper', array ('HtmlTag', array ('tag' => 'dd' ) ), array ('Label', array ('tag' => 'dt', 'placement' => 'PREPEND' ) ) ), 'onchange' => '$(this).getParent("form").submit();' ) );
		
		$this->addElement ( 'Select', 'view', array ('label' => 'View:', 'multiOptions' => array ('' => 'All My Events', '2' => 'Only Events I Lead' ), 'decorators' => array ('ViewHelper', array ('HtmlTag', array ('tag' => 'dd' ) ), array ('Label', array ('tag' => 'dt', 'placement' => 'PREPEND' ) ) ), 'onchange' => '$(this).getParent("form").submit();' ) );
	}
}